﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataSetTableAdapters;

public partial class login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void loginButton_Click(object sender, ImageClickEventArgs e)
    {
        QueriesTableAdapter adapter = new QueriesTableAdapter();
        int? isErr = null;
        adapter.MemberLogin(emailIDTextbox.Text, pwdTextbox.Text, ref isErr);
        if (isErr == 0)
        {
            retLabel.Text = "Email不存在或密码错误！";
            return;
        }
        Response.Redirect("userinfedit.aspx?email="+emailIDTextbox.Text);
    }
}